package dao;

import java.sql.SQLException;
import java.util.Scanner;

public class TestDelete {
    public static void main(String[] args){
        System.out.println("欢迎使用管理系统");
        System.out.println("请输入你要删除的学生学号：");
        Scanner sc =new Scanner(System.in);
        int id =sc.nextInt();

        EmpDAO dao =new EmpDAO();
        try{
            dao.delete(id);
        }catch (ClassCastException | SQLException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        System.out.println("执行完毕");

    }
}
